package com.suse.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
@TableName("notice")
public class Notice extends Model<Notice> implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "notice_id",type = IdType.AUTO)
    private Integer noticeId;

    @Pattern(regexp = "^[\\u4e00-\\u9fa5]{1,10}$",message = "标题必须为中文")
    @TableField(value = "notice_title")
    private String noticeTitle;

    private String noticeContent;
    private String noticeCreatetime;
    private String noticeCreator;
    @TableLogic
    private Integer deleteTag;
}
